package ys.mihoyo.ymcc.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import ys.mihoyo.ymcc.result.JSONResult;
import ys.mihoyo.ymcc.domain.Login;

@FeignClient(value = "service-uaa",fallbackFactory = UaaCallBackFactory.class)
public interface UaaFeignClient {
    /**
     * 保存和修改公用的
     * @param login 传递的实体
     * @return JSONResult
     */
    @PostMapping(value="/login/saveLogin")
    public JSONResult saveLogin(@RequestBody Login login);

/*    *//**
     * 注册接口
     * @param login login对象
     * @return JSONResult
     *//*
    @PostMapping("/login/register")
    public JSONResult register(@RequestBody Login login);*/
}
